package com.tongji.diy.event
{
	/**
	 * 
	 * @author xxj
	 * 
	 */
	import com.tongji.diy.view.component3D.RoomVertex;
	
	import flash.events.Event;
	import flash.geom.Point;
	
	public class UploadRoomVertexEvent extends Event
	{
		public static const UPLOAD_ROOM_VERTEX:String = "uploadRoomVertex";
		
		//更新的顶点RoomVertex，要移动到的2维坐标    new Point（x,z）
		public var roomVertex:RoomVertex;
		public var nodePosition:Point;
		public var register:Boolean;
		
		public function UploadRoomVertexEvent(type:String, roomVertex:RoomVertex, nodePosition:Point, register:Boolean = false)
		{
			super(type);
			this.roomVertex = roomVertex;
			this.nodePosition = nodePosition;
			this.register = register;
		}
		
		override public function clone():Event
		{
			return new UploadRoomVertexEvent(type, roomVertex, nodePosition, register);
		}
	}
}